mudbox::FaceEnumerator Class Reference

#include <mesh.h>

List of all members.


Detailed Description

FaceEnumerator is a base class for operations that must be applied across mesh faces.

To use this class, derive a new enumerator from it. Override the Operator() method to perform the operation you need done to the mesh face. You must also override the Tester() method to test faces to see if they should be included in the operation.

To use your class, call Mesh::EnumerateFaces, specify a starting face, and pass in your enumerator class. Starting with the specified face, your operation will be applied to adjacent faces. If your Tester method returns false for a given face, then that face will not be processed, nor will the operation be propagated to its neighbors.


Public Member Functions

virtual void  Operator (class Mesh *pMesh, unsigned int iFaceIndex)
  Override this method to make it perform your desired operation on a face.
virtual bool  Tester (class Mesh *pMesh, unsigned int iFaceIndex)
  Override this method to check a face to see if it should be included in the enumeration.

Member Function Documentation

virtual void mudbox::FaceEnumerator::Operator class Mesh pMesh,
unsigned int  iFaceIndex
[virtual]
 

Override this method to make it perform your desired operation on a face.

Parameters:
pMesh  [in] pointer to the mesh being processed
iFaceIndex  [in] index of the face to be processed
virtual bool mudbox::FaceEnumerator::Tester class Mesh pMesh,
unsigned int  iFaceIndex
[virtual]
 

Override this method to check a face to see if it should be included in the enumeration.

Return true if it should; false otherwise

Parameters:
pMesh  [in] pointer to the mesh being processed
iFaceIndex  [in] index of the face to be processed

mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator
mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator mudbox::FaceEnumerator